﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace GeuzenAdministratie
{
    public partial class WelcomeUser : Form
    {
        public WelcomeUser()
        {
            InitializeComponent();
        }
        public WelcomeUser(string voornaam, string tussenvoegsel, string achternaam, string KNSA)
        {
            InitializeComponent();
            label1.Text = "Welkom,\n" + voornaam + " " + tussenvoegsel + " " + achternaam+".\nUw aanwezigheid is genoteerd!";
        }

        private void WelcomeUser_Load(object sender, EventArgs e)
        {
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.TopMost = true;
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
            Timer MyTimer = new Timer();
            MyTimer.Interval = (5000); // 45 mins
            MyTimer.Tick += new EventHandler(MyTimer_Tick);
            MyTimer.Start();
        }
        private void MyTimer_Tick(object sender, EventArgs e)
        {
            
            this.Close();
        }

    }
}
